Skip to content

175 converse with gemini api using langchain#177

Open
biniyam-29 wants to merge 19 commits intorelease-02from
175-converse-with-gemini-api-using-langchain
Open

175 converse with gemini api using langchain#177
biniyam-29 wants to merge 19 commits intorelease-02from
175-converse-with-gemini-api-using-langchain

Conversation

@biniyam-29
Copy link
Copy Markdown
Collaborator

  • On this PR I've been successful to be able to converse with gemini api
  • If the a conversation had to be newly created it will send to the message exchange with 'moderator' routing (which will be directed to only database and moderator aka "the bot")
  • Since everytime a conversation is not created but if the conversation exists yet it is with the moderator aka "the bot" it will send it to the message exchange by 'moderator' routing key. but if the mentor is not a bot it will be sent with a 'message' routing key which goes to the web.
  • Once the response has been captured from the gemini api the response will be formatted with our system chat-message-standard-format it will be sent to the chat exchange which by then the database and the chat consumer will get the message.
  • Once the chat consumer gets the message it will concurrently send the message as the database consumer is saving the message.

…etter-exchange' for queue 'database' in vhost '/': received 'moderator' but current is 'message'
…or-mentor-profile' into 175-converse-with-gemini-api-using-langchain
…e it was not getting and response from the consumer)
…was throwing error cause it is stringfied, so placed a parser based on type)
@biniyam-29 biniyam-29 requested a review from bengeos March 30, 2025 13:30
@biniyam-29 biniyam-29 linked an issue Mar 30, 2025 that may be closed by this pull request
@biniyam-29 biniyam-29 added the enhancement New feature or request label Mar 30, 2025
@biniyam-29 biniyam-29 self-assigned this Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

converse with gemini api using langchain

2 participants